<?php
include('config.php');
$type_name = isset($_POST['type_name']) ? $_POST['type_name'] : '';
$name = isset($_POST['name']) ? $_POST['name'] : '';
$rs = $mysql->selectList('breed',"breed_name='{$name}'");
$where = "breed_id={$rs[0]['breed_id']}";
$keyword = isset($_POST['keyword']) ? trim($_POST['keyword']) : '';
if($keyword){
	$where .= " and number_name like '%{$keyword}%'";
}
$result = $mysql->selectList('number',$where);
if($result){
	foreach ($result as $k=>$v){
		echo '<label style="display:block;" ondblclick="dblCode('.$v['number_id'].')" id="change_code'.$v['number_id'].'" onclick="add_code_change_backgroud('.$v['number_id'].')"><input type="radio"  name="radiobutton" value="'.$v['number_name'].'"/>'.$v['number_name'].'</label>';
	}
}
